home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 2
/
Aminet AMIGA CDROM (1994)(Walnut Creek)[Feb 1994][W.O. 44790-1].iso
/
Aminet
/
dev
/
amos
/
ldosv25d.lha
/
ldos_demo
/
examples
/
ldos
/
View-Boot.AMOS
/
View-Boot.amosSourceCode
Wrap
AMOS Source Code
|
1992-03-22
|
1KB
|
43 lines
'Display the contents of the boot-blocks (block 0 and 1)
Screen Open 1,640,256,2,Hires
Paper 0 : Clw : Ink 0,1 : Curs Off
Reserve As Chip Work 10,1024
Rem NOTE CHIP!!
'Read the boot-block
A= Extension_10_01AE("trackdisk.device",0,0)
A= Extension_10_01DA(2,Start(10),512*2,880*512)
'
'Turn off motor
A= Extension_10_01DA(9,0,0,0)
Extension_10_01C6
X=0 : Y=10
T=Timer
For I=Start(10) To Start(10)+1023
P=Peek(I)
Text X,Y,Chr$(P)
X=X+8
If X=64*8
X=0
Y=Y+10
End If
Next I
_TOOK=Timer-T
Locate 20,21 : Print "Contents of block 0 and 1"
Print "This was the speed of AMOS, Chr$()"
Print "Press a Key" : Wait Key
Clw
Y=10
ST=Start(10)
T=Timer
For I=1 To 16
A$= Extension_10_007A(ST,64)
ST=ST+64
Text 0,Y,A$
Y=Y+10
Next I
_TOK=Timer-T
Locate 20,21 : Print "Contents of block 0 and 1"
Print "This is the speed of Ldos, Lstr()"
Print "Chr$ took";_TOOK;" Vbl Lstr took";_TOK;" Vbl"
Print "Which means, Lstr is more than ";_TOOK/_TOK;" times faster :-)"
Wait 100